<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>Title</title>
    </head>
    <body>
        <div id="app">
            <div>
                <!-- 1. 在遍历对象的时候，如果只获取一个值，那么获取的就是value -->
                <ul>
                    <li v-for="item in info">{{item}}</li>
                </ul>

                <!-- 2. 遍历出key和value；注意value在前面，key在后面 -->
                <ul>
                    <li v-for="(value, key) in info">{{value}}-{{key}}</li>
                </ul>

                <!-- 3. index也一起遍历出来 -->
                <ul>
                    <li v-for="(value, key, index) in info">{{value}}={{key}}-{{index}}</li>
                </ul>
            </div>
        </div>
        <script src="../js/vue.js"></script>
        <script>
            const app = new Vue({
                el: '#app',
                data: {
                    info: {
                        name: 'jack',
                        age: 18,
                        height: 1.88
                    }
                }
            })
        </script>
    </body>
</html>